package com.micro.mic_business.order.service.impl;

import com.micro.mic_business.order.mapper.UserMapper;
import com.micro.mic_business.order.service.UserService;
import com.micro.mic_business.order.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Description
 * @Author yijian
 * @Date 2021/12/30 11:28
 **/
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public UserVo queryUserById(long id) {
        return userMapper.queryUserById(id);
    }

    @Override
    @Transactional
    public void insertUserInfo(UserVo userVo) {
        userMapper.inserUserInfo(userVo);
    }


}
